package com.qs.pojo.es;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

/**
 * <p>
 * 商品表
 * </p>
 *
 * @author author
 * @since 2023-11-14
 */
@Data
@Document(indexName = "qs_store")
public class EsStoreDto {

    @Id
    @Field(type = FieldType.Keyword)
    private Integer key;

    @Field(type = FieldType.Text,analyzer = "ik_max_word")
    private String store;

    @Field(index=false,type = FieldType.Keyword)
    private String storeImage;
}
